<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');

/** eggsurplus: photo */

require_once('modules/DynamicFields/templates/Fields/TemplateText.php'); 
require_once('modules/DynamicFields/templates/Fields/TemplateField.php');

class TemplatePhoto extends TemplateText{
	var $type = 'photo';
	//ext1 is the display width
	//ext2 is the display height
	//ext3 is fixed dimension checkbox
    
	function get_field_def(){
		$def = parent::get_field_def();

    	$GLOBALS['log']->debug("TemplatePhoto get_field_def: ".print_r($this,true));
    	
		$def['ext2'] = $this->ext2;
		$def['ext3'] = $this->ext3;
		$def['ext4'] = $this->ext4;
		
		$def['len'] = '255';
		$def['dbType'] = 'varchar';
		$def['default'] = '';
		return $def;	
	} 

    function save($df){
    	$GLOBALS['log']->debug("TemplatePhoto Save: ".print_r($this,true));
	
		
		parent::save($df);
    }	
}


?>
